<?php
    echo $this->form($this->element->getName(),$this->element->getAttribs(),false);
    echo $this->renderElement ( $this->element->codindicador );
?>
<table width="100%" align="center">
<tr>
	<td valign="top">
        <table align="center" width="100%" class="iceDatTbl zebra">
      	<TR>
      	  <th><span class="btn">Expresión indicador</span></th>
      	</TR>
        <TR>
         <td align="center"><?php echo $this->renderElement ( $this->element->expresion );?></td>
        </TR>
      </table>
	<td valign="top">&nbsp;</td>
    <td align="center" valign="top">
        <table align="center" width="100%" class="iceDatTbl zebra">
      	<TR>
      	  <th colspan=4><a class="link-asignar1 btn" href="#">Funciones predefinidas <span class="glyphicon glyphicon-info-sign"></span></a></th>
      	</TR>
        <TR>
          <td width="25%" align="center"> <input style="width:99%" onclick="agregar_otros('expresion','sqrt(')" type="button" value="sqrt" name="bsqr" class="btn btn-danger btn-xs" /></td>
          <td width="25%" align="center"> <input style="width:99%" onclick="agregar_otros('expresion','pow(x,2)')" type="button" value="x^2" name="Submit5" class="btn btn-danger btn-xs"/></td>
          <td width="25%" align="center"> <input style="width:99%" onclick="agregar_otros('expresion','pow(x,y)')" type="button" value="x^y" name="Submit3" class="btn btn-danger btn-xs"/></td>
		  <td width="25%" align="center"> <input style="width:99%" onclick="agregar_otros('expresion','abs(')" type="button" value="abs" name="Submit4" class="btn btn-danger btn-xs"/></td>
        </TR>
        <tr>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','log10(')" type="button" value="&nbsp;log" name="blog" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','log(')" type="button" value="logn" name="bln" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','ceil(')" type="button" value="&nbsp;ceil" name="bce" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','floor(')" type="button" value="floor" name="Submit8" class="btn btn-danger btn-xs"/></td>
        </tr>
        <tr>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','exp(')" type="button" value="exp" name="bexp" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','3.1415926535898')" type="button" value="&nbsp;pi&nbsp;" name="bpi"class="btn btn-danger btn-xs" /></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','round(')" type="button" value="round" name="Submit15" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','2.718281828459')" type="button" value="&nbsp;e&nbsp;" name="btne" class="btn btn-danger btn-xs"/></td>
        </tr>
        <tr>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','+')" type="button" value="&nbsp;+&nbsp;" name="bmas" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','-')" type="button" value="&nbsp;-&nbsp;" name="bmen" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','*')" type="button" value="&nbsp;*&nbsp;" name="bpor" class="btn btn-danger btn-xs"/></td>
          <td align="center"> <input style="width:99%" onclick="agregar_otros('expresion','/')" type="button" value="&nbsp;/&nbsp;" name="bdiv" class="btn btn-danger btn-xs"/></td>
        </tr>
        <tr>
          <td align="center" colspan="2"> <input style="width:99%" type="button" value="Variables" name="var" id="var" class="btn btn-danger btn-xs"/></td>
          <td align="center" colspan="2"> <input style="width:99%" type="button" value="Indicadores" name="ind" id="ind" class="btn btn-danger btn-xs"/></td>
        </tr>
      </table>
   </td>
 </tr>
  </table>
<BR>
 <?php
	if (! $this->element->isStatic ()) :
            echo $this->element->btnSubmit->render();
            echo $this->element->btnReset->render();
	endif;
	?>
</form>